<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="description" content="学生作业提交系统">
  <meta name="keywords" content="学生,作业,提交,系统">
  <!-- 确保正确的渲染模式 -->
  <meta name="renderer" content="webkit">
  <!-- 禁止缓存 -->
  <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
  <meta http-equiv="Pragma" content="no-cache">
  <meta http-equiv="Expires" content="0">
  <title>学生作业提交系统</title>
  <!-- 引入layui CSS -->
  <link rel="stylesheet" href="/layui.min.css">
  <style>
    body {
      margin: 0;
      padding: 0;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    }
    .main-container {
      min-height: calc(100vh - 60px);
      padding: 20px;
    }
    .header {
      height: 60px;
      background-color: #2F4056;
      color: white;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 20px;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .header-title {
      font-size: 20px;
      font-weight: bold;
    }
    .header-user {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .layui-card {
      margin-bottom: 20px;
    }
    .layui-table {
      margin-bottom: 0;
    }
    .rank-list {
      max-height: 400px;
      overflow-y: auto;
    }
    .submit-form {
      max-width: 800px;
      margin: 0 auto;
    }
    .editor-container {
      border: 1px solid #e6e6e6;
      border-radius: 4px;
      padding: 10px;
      min-height: 200px;
    }
  </style>
</head>
<body>
  <div id="app"></div>
  <!-- 引入layui JS -->
  <script src="/layui.min.js"></script>
  <!-- 确保正确的模块加载顺序 -->
  <script type="module">
    // 等待DOM加载完成
    document.addEventListener('DOMContentLoaded', () => {
      import('/src/main.js').catch(error => {
        console.error('Error loading main.js:', error);
        // 提供简单的错误恢复
        const app = document.getElementById('app');
        if (app) {
          app.innerHTML = '<div style="padding: 20px; text-align: center; color: red;">应用加载失败，请刷新页面重试</div>';
        }
      });
    });
  </script>
</body>
</html>